<?php

	/**
	 * @ignore
	 */
	if( defined("apl_".__FILE__)) return;
	define("apl_".__FILE__,"apl_".__FILE__);
	
	require_once( APL_ROOT."/components/apl_file_upload.php");
	class AplImageUpload extends AplFileUpload
	{
		private $validTypes=array(	"image/jpeg",
									"image/bmp",
									"image/x-windows-bmp",
									"image/fif",
									"image/gif",
									"image/x-pcx",
									"image/pict",
									"image/png",
									"image/tiff"
							);
		protected function validateUpload()
		{
			parent::validateUpload();
			if( !in_array($this->fileType,$this->validTypes) )
				$this->failValidate();
		}
	}

?>